Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message updates are now full messages . #344

Merged
merged 4 commits into from
Nov 3, 2024

Conversation

VelvetToroyashi
Copy link
Contributor

This commit changes the IMessageUpdate interface (and subsequently, its implementation)to implement the IMessageInterface instead of the IPartialMessage interface.

This change is due to Discord returning a full message object on MESSAGE_UPDATE.

BREAKING-CHANGE: IMessageUpdate now implements IMessage (which implements IPartialMessage),
Mentions is no longer optional. The ad-hoc implementation for IPartialMessage was kept out of convenience (and to avoid further breaking changes)

This commit changes the IMessageUpdate interface (and subsequently, its
implementation)to implement the IMessageInterface instead of the
IPartialMessage interface.

This change is due to Discord returning a full message object on
MESSAGE_UPDATE.

BREAKING-CHANGE: IMessageUpdate now implements IMessage
(which implements IPartialMessage),
`Mentions` is no longer optional. The ad-hoc implementation for
IPartialMessage was kept out of convenience (and to avoid further breaking changes)
@Nihlus Nihlus added the waiting for review The PR is awaiting review by maintainers label Nov 2, 2024
@Nihlus Nihlus added waiting for author The PR is awaiting an update from the author and removed waiting for review The PR is awaiting review by maintainers labels Nov 2, 2024
Apparently it isn't enough to simply use `new` with a different type, at least in C#12
@Nihlus Nihlus merged commit 1b3c84a into Remora:main Nov 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for author The PR is awaiting an update from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants